package cn.happy.day02.service.impl;

import cn.happy.day02.dao.IUserInfoDAO;
import cn.happy.day02.entity.UserInfo;
import cn.happy.day02.service.IUserInfoService;

public class UserInfoServiceImpl implements IUserInfoService {
    //植入DAO层对象
    private IUserInfoDAO userInfoDAO;
    @Override
    public void save(UserInfo userInfo) {
        userInfoDAO.save(userInfo);
    }

    public IUserInfoDAO getUserInfoDAO() {
        return userInfoDAO;
    }

    public void setUserInfoDAO(IUserInfoDAO userInfoDAO) {
        this.userInfoDAO = userInfoDAO;
    }
}
